package chainOfResponsibility;

public class MainTest17 {
    public static void main(String[] args) {
        CarHandler head = new CarHeadHandler();
        CarHandler body = new CarBodyHandler();
        CarHandler tail = new CarTailHandler();
        body.setNextHandler(tail);
        tail.setNextHandler(head);
        body.handlerCar();
    }
}
